package main

import "fmt"

// 定义常量 const  与 iota 语法糖
const weight int = 100
const (
	beijing  = iota     //0  iota 是按照行递增 ++
	shanghai            //1
	shenzhen            //2
	tangshan = iota + 1 //iota=3
)

func main() {
	const height int = 25
	fmt.Println(" height is", height)
	fmt.Println(" weight is", weight)
	fmt.Println(beijing)
	fmt.Println(shanghai)
	fmt.Println(shenzhen)
	fmt.Println(tangshan)
	// height = 10  常量不许修改

}
